<script>
export default {
	onLaunch: function() {
		uni.onTabBarMidButtonTap(()=>{
			uni.navigateTo({
				url: '/pages/model/modelPublic/modelPublic?type=add',
				animationType: "slide-in-bottom", // 动画类型
				animationDuration: 150, // 窗口动画持续时间，单位为 ms
				fail(err) {
				    console.log(err)
				}
			})
		});
		const uid = uni.getStorageSync('uid') || ''
		const loginStatus = uni.getStorageSync('loginStatus') || false
		const userInfo = uni.getStorageSync('userInfo') || '{}'
		this.$store.commit('setLoginStatus', loginStatus)
		this.$store.commit('setUserinfo', JSON.parse(userInfo))
		this.$store.commit('setUid', uid)
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style lang="scss">
/* uview组件样式库  */
@import "uview-ui/index.scss";
/*每个页面公共css */ 
@import '@/common/uni-ui.scss';
uni-tabbar .uni-tabbar__mid {
	padding: 10px;
	background: #fff;
	border-radius: 50%;
}
.uni-picker-container .uni-picker-action.uni-picker-action-confirm {
	color: $color;
}
@font-face {
  font-family: "iconfont"; /* Project id 2752691 */
  src: url('//at.alicdn.com/t/font_2752691_mjpqt8yor4b.woff2?t=1629264060342') format('woff2'),
       url('//at.alicdn.com/t/font_2752691_mjpqt8yor4b.woff?t=1629264060342') format('woff'),
       url('data:application/x-font-woff2;charset=utf-8;base64,	AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8nEmhAAABjAAAAGBjbWFwtNMe4gAAAfwAAAGcZ2x5Ztkt3rkAAAOkAAAB7GhlYWQdsHDkAAAA4AAAADZoaGVhB4IDhQAAALwAAAAkaG10eBAAAAAAAAHsAAAAEGxvY2EBQADKAAADmAAAAAptYXhwARIAYgAAARgAAAAgbmFtZRCjPLAAAAWQAAACZ3Bvc3SNnc28AAAH+AAAAEQAAQAAA4D/gAAABAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAQAAQAAAAEAANxoSNBfDzz1AAsEAAAAAADdSJZ0AAAAAN1IlnQAAP+ZBAADZgAAAA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gAwAGkAYwBvAG4AZgBvAG4AdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAECAQMBBAEFAAZzb3VzdW8IZmVueGlhbmcGZmFuaHVpAAA=') format('woff2'),
	   url('//at.alicdn.com/t/font_2752691_mjpqt8yor4b.ttf?t=1629264060342') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 18px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-sousuo:before {
  content: "\e62b";
}

.icon-fenxiang:before {
  content: "\e6d1";
}

.icon-fanhui:before {
  content: "\e697";
}


</style>
